﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using seejee_Backendium.Core.Models;

namespace seejee_Backendium.Core.Interfaces
{
    public interface IUserAPPsService
    {
        Task<IEnumerable<UserApp>> GetAllAsync();
        Task<UserApp> GetByIdAsync(int id);
        Task<IEnumerable<UserApp>> GetAllAsync(
            int page,
            int pageSize,
            string sortBy,
            string sortDirection);
        Task<int> GetCountAsync();
        Task<UserApp> AddAsync(UserApp userApp);
        Task<UserApp> UpdateAsync(UserApp userApp);
        Task<int> DelectByNameAsync(int id);
        Task<IEnumerable<UserInfoDTO>> GetAllUserAsunc();
        Task<(bool Success, IEnumerable<UserApp> Data, int Total, string Message)>SearchUsersAsync(string keyword, int page = 1, int pageSize = 10);
    }
}
